package com.dingreading.cloud.web.service;

import com.alibaba.fastjson.JSONObject;
import com.mybatisflex.core.service.IService;
import com.dingreading.cloud.web.entity.NjTicketUser;

import java.util.Date;
import java.util.List;

/**
 *  服务层。
 *
 * @author Administrator
 * @since 2024-12-23
 */
public interface NjTicketUserService extends IService<NjTicketUser> {

    List<NjTicketUser> getByOpenid(String openid, String year);

    List<NjTicketUser> getByPhone(String phone, String year);

    NjTicketUser getByUidAndAddTime(String uid, Date date, String year);

    NjTicketUser getByUid(String uid, String year);

    boolean setPermitStatus(String uid);

    JSONObject getGetStatusCnt();

    List<String> listByPhoneAndYear(String year, List<String> phoneList);

    /**
     * 查询未发送短信的抖音观展票用户
     */
    List<NjTicketUser> listByYearAndSource(String year, String source);
}
